<?php

class AdPhotos extends AppModel {
  public $name = 'AdPhotos';
  public $belongsTo = array('Ad'=>array(
      'className'=> 'Ad',
      'foreignKey'=>'ad_id',
      'type' =>'inner'
 ));


  public $validate = array(
      'AdPhotos.title' => array(
          'name' => 'notEmpty',
          'message'=>'Title is required'
      )
  );
   //http://book.cakephp.org/1.3/view/1042/belongsTo
  
}

?>
